
<div class="left_tl">
        <div class="menu_left">
        <div id="accordion">
            <div class="mnleft">
<?php 
$i = 0;
foreach ($nav as $arr) {
$i++;
 ?>             
            <h3 ><a href="javascript:void(0)" title=""><?php echo $arr[0]->title ?> <span>(<?php echo $arr[0]->download ?>)</span></a> </h3>
            <div class="" style="overflow:hidden">
            <ul>
            <?php 
            $i = 1;
            $total = count($arr);
            foreach ($arr as $row) {
                $url = url('danh-muc/'.$row->calias);

                $cls = $cid == $row->cid ? 'active' : '';
            ?>
                <li class="lv2 <?php echo $cls ?> "> <a href="<?php echo $url ?>"> <?php echo $row->ctitle ?> </a> </li>
                <?php if ($i < $total) echo '<li class="lv2 line"></li>' ?>
               
            <?php 
                $i++;
            }
             ?>
              </ul>
            </div>
<?php 
}
 ?>
          </div>
              
              
    </div>
    </div>
</div>